/*
 * config_packet.cpp
 *
 *  Created on: 08.07.2013
 *      Author: SpirTanol
 */

#include "packets/config_packet.h"
//=========================================================================================
ConfigPacket::ConfigPacket(const ConfigPacket *packet)
{
	init();
	memcpy(oData, packet->oData, R_SIZE * sizeof(ushort));
}
//=========================================================================================
ConfigPacketV50::ConfigPacketV50(const ConfigPacketV50 *packet) : ConfigPacket(packet)
{
	init();
	oTimePtotectOfBiasCurrents = packet->oTimePtotectOfBiasCurrents;
}
//=========================================================================================
ConfigPacketV70::ConfigPacketV70(const ConfigPacketV70 *packet) : ConfigPacketV50(packet)
{
	init();
	oData[R_PROTECTION_THRESHOLD_OF_IDLE] = packet->oData[R_PROTECTION_THRESHOLD_OF_IDLE];
	oData[R_PROTECTION_THRESHOLD_OF_INSULATION] = packet->oData[R_PROTECTION_THRESHOLD_OF_INSULATION];
}
